import { createRouter, createWebHashHistory } from 'vue-router'
import { Routes } from './routes'

export const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      name: RouteNameConst.Index,
      path: '/',
      component: () => import('@renderer/pages/index/index.vue'),
      redirect: { name: RouteNameConst.ScriptConfManager },
      children: Routes
    }
  ]
})
